package demo;

public class TestClone implements Cloneable{
    public int a;
    public Object obj;

    TestClone(int a, Object obj){
        this.a = a;
        this.obj = obj;
    }

    @Override
    protected TestClone clone() {
        TestClone n = null;
        try{
            n = (TestClone) super.clone();
        } catch (CloneNotSupportedException e){
            e.printStackTrace();
        }
        return n;
    }
}
